<?php

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: GetPaginatorHtml.php 130 2011-03-18 03:10:02Z cheng.wei $$
 * @copyright Copyright (c) 2008 Evebit Inc. China (http://www.evebit.com)
 */

/**
 * Render paginator
 * 
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: GetPaginatorHtml.php 130 2011-03-18 03:10:02Z cheng.wei $$
 */
class Evebit_View_Helper_GetPaginatorHtml extends Zend_View_Helper_Abstract {
	
	/**
	 * Render paginator to HTML
	 * 
	 * @return string
	 */
	public function getPaginatorHtml($paginator, $param = array(), $render = 'sliding') {
		$baseParam = array(
				'template'=> 'pagination', 
				'paginator'=> $paginator, 
				'style'=> 'sliding', 
				'render'=> $render);
		return $this->view->action('render', 'block', 'blocks', array_merge($baseParam, $param));
	}
}
